export const selfStyle = `
    .{cls} {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3000;
    }
`;

export const templateHTML = {
    id: 'webc-dialog-inner-template-9527',

    style: `
        .{cls}-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
        }

        .{cls}-modal {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #bbbbbb3d;
        }

        .{cls}-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 35%;
            min-width: 300px;
            height: 50%;
            min-height: 200px;
            background: white;
            border-radius: 4px;
            box-shadow: 0 0 12px 2px #cacaca7a;
        }

        .{cls}-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 36px;
            padding: 0 12px 0 16px;
            box-sizing: border-box;
            user-select: none;
        }
        .{cls}-header > .{cls}-title {
            font-size: 16px;
            font-weight: bolder;
        }
        .{cls}-header > .{cls}-close {
            font-size: 16px;
            cursor: pointer;
        }

        .{cls}-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            height: 42px;
            font-size: 12px;
        }
    `,

    render: `
        <div class="{cls}-wrapper">
            <div class="{cls}-modal"></div>
            <div class="{cls}-container">
                <div class="flex-col">
                    <div class="{cls}-header flex-col-fixed">
                        <div class="{cls}-title">
                            <slot name="title"></slot>
                        </div>
                        <i class="{cls}-close fa fa-fw fa-times" onclick="_webcEvent.dialog.close()"></i>
                    </div>

                    <div class="{cls}-body flex-col-auto">
                        <slot name="content"></slot>
                    </div>

                    <div class="{cls}-footer flex-col-fixed">
                        <slot name="footer"></slot>
                    </div>
                </div>
            </div>
        </div>
    `,
};
